//
//  HomeTransforShowOrderInfoThreeTableViewCell.m
//  ZJControlsClass
//
//  Created by mac on 2024/12/8.
//

#import "HomeTransforShowOrderInfoThreeTableViewCell.h"

@interface HomeTransforShowOrderInfoThreeTableViewCell()

@property (nonatomic, strong) UIImageView *img;

@end

@implementation HomeTransforShowOrderInfoThreeTableViewCell



-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        self.img = [[UIImageView alloc] init];
        self.img.layer.cornerRadius = 10;
        self.img.layer.masksToBounds = YES;
//        self.img.contentMode = UIViewContentModeScaleAspectFit;
        self.img.image = [UIImage imageNamed:@"banner"];
        [self.contentView addSubview:self.img];
        [self.img mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView).with.offset(ALIGN_WIDTH_PT(12));
            make.right.equalTo(self.contentView).with.offset(-ALIGN_WIDTH_PT(12));
            make.top.equalTo(self.contentView).with.offset(ALIGN_HEIGHT_PT(5));
            make.bottom.equalTo(self.contentView).with.offset(-ALIGN_HEIGHT_PT(5));
        }];
        
    }
    return self;
}

-(void)setImgUrl:(NSString *)imgUrl{
    [self.img sd_setImageWithURL:[NSURL URLWithString:imgUrl]];
}




@end
